
import storage from '@/libs/storage';

let isDomainShowList = {
    domainShowSpreadArr:['Candy','CatCash','Pesopop','Weagle','Logicash'],//分期
    domainShowRepaySerialNumber:['Pesopop','Candy','Fastcoinadmin','Weagle','CatCash','GoalMete','Realcash','Logicash','TACO',,'Funpera', 'Gold','Bene']//生成还款吗
};
function domainCheck(domainArr){
    let result = false;
    let domain = storage.get('user').domain;
    domainArr.forEach(item=>{

        if(item===domain) result = true
    });
    return result
};
function showRepaySerialNumber (){
    // let result = domainCheck(isDomainShowList.domainShowRepaySerialNumber);
    let result = true
    return result
};
function showSpread (){
    let result = domainCheck(isDomainShowList.domainShowSpreadArr);
    return result
}
export default {
    showRepaySerialNumber,
    showSpread
}